function loadJScript() {
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = '//api.map.baidu.com/api?type=webgl&v=1.0&ak=Pv42Y43FqwGB9SUwZa68nKTFLh623fv0&callback=init';
    document.body.appendChild(script);
}
function init() {
    var map = new BMapGL.Map('container'); // 创建Map实例
    var point = new BMapGL.Point(106.518762,29.542507); // 创建点坐标
    map.centerAndZoom(point, 19);
    map.enableScrollWheelZoom(); // 启用滚轮放大缩小
    map.enableScrollWheelZoom(true);
    var marker1 = new BMapGL.Marker(new BMapGL.Point(106.518762,29.542507));
    map.addOverlay(marker1);

}
window.onload = loadJScript; // 异步加载地图
